import { Module } from "@nestjs/common";
import { TypeOrmModule } from "@nestjs/typeorm";
import { GoodsEntity } from "~/modules/shop/goods/goods.entity";
import { GoodsService } from "~/modules/shop/goods/goods.service";
import { UploadService } from "~/modules/tools/upload/upload.service";
import { StorageModule } from "~/modules/tools/storage/storage.module";
import { GoodsController } from "./goods.controller";
import { AliyunOssModule } from "~/shared/aliyun-oss/aliyun-oss.module";

@Module({
	imports: [
		TypeOrmModule.forFeature([GoodsEntity]),
		StorageModule,
		AliyunOssModule
	],
	controllers: [],
	providers: [GoodsService, UploadService],
	exports: [
		TypeOrmModule,
		GoodsService
	]
})
export class GoodsModule { }
